#! /bin/bash

p=$(env | grep -i proxy)

if [ $# != 2 ]; then
  echo "Usage: Enable, proxy.sh IP PORT."
  echo "Usage: Disable, proxy.sh."
  unset http_proxy
  unset https_proxy
  echo Disabled proxy!
else
  addr=$1
  port=$2
  ip=${addr}:${port}
  export http_proxy=${ip}
  export https_proxy=${ip}
  echo Enabled proxy!
fi